CVE-2023-50252
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2023-50252 affects php-svg-lib, an SVG file parsing and rendering library, prior to version 0.5.1. The vulnerability was discovered and disclosed on December 12, 2023. The issue occurs when handling a use tag that references an image tag, where the library merges attributes between these tags without proper sanitization (GitHub Advisory).

Technical details

The vulnerability stems from improper attribute merging between use and image tags. When parsing a use tag, the library merges attributes from the referenced tag without properly sanitizing the href attribute. This process can bypass existing validation mechanisms, particularly in the case of image tags. The vulnerability has received a CVSS v3.1 base score of 9.8 (Critical) from NIST and 8.3 (High) from GitHub, with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L (NVD).

Impact

The vulnerability can lead to unsafe file read operations that may result in PHAR Deserialization vulnerabilities in PHP versions prior to 8. In affected PHP versions, this could potentially lead to file deletion causing denial of service, and depending on the available classes in the system, could even result in Remote Code Execution (RCE) (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.5.1 of php-svg-lib. For systems that cannot immediately update, it is recommended to implement input validation for SVG files, particularly focusing on the validation of href attributes in use and image tags. The patch prevents the merging of additional USE element attributes by adding 'href', 'xlink:href', and 'id' to the list of attributes that should not be merged (GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22776HIGH8.7
  • Linux DebianLinux Debian
  • cpp-httplib
NoNoJan 12, 2026
CVE-2026-22801MEDIUM6.8
  • OpenJDK JDKOpenJDK JDK
  • java-1.8.0-openjdk-accessibility-fastdebug
NoYesJan 12, 2026
CVE-2026-22695MEDIUM6.1
  • OpenJDK JDKOpenJDK JDK
  • java-1.8.0-openjdk-javadoc-zip
NoYesJan 12, 2026
CVE-2026-22251MEDIUM5.3
  • PythonPython
  • wlc
NoYesJan 12, 2026
CVE-2026-0665N/AN/A
  • Linux DebianLinux Debian
  • qemu
NoNoJan 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management