[security][CRITICAL] snappy 1.2.2: 2 CVE require triage #1
Labels
No labels
auto-analysis
cve
match-cpe-range
needs-triage
security
severity-critical
source-niceos-scan
source-nvd
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
rpms/snappy#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CVE triage request / Запрос на разбор CVE
Package / Пакет
snappy1.2.21.2.2-1----CRITICAL9.82needs_triagecpe-rangeLLM recommendation / Рекомендация LLM
RU
Для пакета snappy 1.2.2 найдены CVE-кандидаты по данным NVD/CPE: CVE-2023-28115, CVE-2023-41330. Требуется triage security-team.
Проверить применимость CVE к сборке НАЙС.ОС, сопоставить с upstream/vendor advisory, определить статус affected/fixed/not_affected и при необходимости подготовить обновление пакета.
Рекомендуемое действие:
needs_triageПодсказка по целевой версии:
-Проверки: Проверить сборку RPM, обновление пакета, совместимость зависимостей, service/CLI smoke tests и регрессионные сценарии по классу пакета.
Риски: Автоматическое совпадение NVD/CPE не является финальным вердиктом по НАЙС.ОС.
EN
NVD/CPE candidate CVEs were found for snappy 1.2.2: CVE-2023-28115, CVE-2023-41330. Security-team triage is required.
Verify CVE applicability to the NiceOS build, compare with upstream/vendor advisories, set affected/fixed/not_affected status, and prepare a package update if required.
Recommended action:
needs_triageTarget version hint:
-Tests: Run RPM build, package upgrade, dependency compatibility, service/CLI smoke tests, and package-class-specific regression tests.
Risks: An automatic NVD/CPE match is not the final NiceOS vulnerability verdict.
CVE candidates from NVD/CPE
Descriptions
CVE-2023-28115
Snappy is a PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Prior to version 1.4.2, Snappy is vulnerable to PHAR deserialization due to a lack of checking on the protocol before passing it into the
file_exists()function. If an attacker can upload files of any type to the server he can pass in the phar:// protocol to unserialize the uploaded file and instantiate arbitrary PHP objects. This can lead to remote code execution especially when snappy is used with frameworks with documented POP chains like Laravel/Symfony vulnerable developer code. If a user can control the output file from thegenerateFromHtml()function, it will invoke deserialization. This vulnerability is capable of remote code execution if Snappy is used with frameworks or developer code with vulnerable POP chains. It has been fixed in version 1.4.2.CVE-2023-41330
knplabs/knp-snappy is a PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page.
Issue
On March 17th the vulnerability CVE-2023-28115 was disclosed, allowing an attacker to gain remote code execution through PHAR deserialization. Version 1.4.2 added a check
if (\strpos($filename, 'phar://') === 0)in theprepareOutputfunction to resolve this CVE, however if the user is able to control the second parameter of thegenerateFromHtml()function of Snappy, it will then be passed as the$filenameparameter in theprepareOutput()function. In the original vulnerability, a file name with aphar://wrapper could be sent to thefileExists()function, equivalent to thefile_exists()PHP function. This allowed users to trigger a deserialization on arbitrary PHAR files. To fix this issue, the string is now passed to thestrpos()function and if it starts withphar://, an exception is raised. However, PHP wrappers being case insensitive, this patch can be bypassed usingPHAR://instead ofphar://. A successful exploitation of this vulnerability allows executing arbitrary code and accessing the underlying filesystem. The attacker must be able to upload a file and the server must be running a PHP version prior to 8. This issue has been addressed in commitd3b742d61awhich has been included in version 1.4.3. Users are ad...[truncated]
Scanner integration / Интеграция со сканером
This issue was generated from
niceos_cve_matchesafter the SPEC/Forgejo evidence pass.After real creation, this script writes
forgejo_issue_openrows intoniceos_cve_evidenceand marks the selected CVE rows asissue_open, so the next scanner/creator run does not duplicate the issue.Maintainer checklist
affected,fixed,not_affected,false_positive,deferred, ornot_in_cloud_image.niceos_cve_triageentry.NICE-SAadvisory if a security update is shipped.Machine metadata