CVE-2023-50252: php-svg-lib unsafe attributes merge when parsing `use` tag

Published Dec 12, 2023
·
Updated

php-svg-lib is an SVG file parsing / rendering library. Prior to version 0.5.1, when handling <use> tag that references an <image> tag, it merges the attributes from the <use> tag to the <image> tag. The problem pops up especially when the href attribute from the <use> tag has not been sanitized. This can lead to an unsafe file read that can cause PHAR Deserialization vulnerability in PHP prior to version 8. Version 0.5.1 contains a patch for this issue.

Affected Software

1 affected component
dompdf php-svg-lib<0.5.1

Event History

Dec 12, 2023
CVE Published
08:39 PM
Data Sourced
08:39 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-50252?

CVE-2023-50252 has been classified with a moderate severity due to its potential impact on the rendering of SVG files.

2

How do I fix CVE-2023-50252?

To fix CVE-2023-50252, upgrade php-svg-lib to version 0.5.1 or later, where the issue has been resolved.

3

What is the impact of CVE-2023-50252 on applications?

CVE-2023-50252 may lead to unexpected behavior when parsing SVG files, particularly affecting how attributes are merged.

4

Which versions of php-svg-lib are affected by CVE-2023-50252?

All versions of php-svg-lib prior to 0.5.1 are affected by CVE-2023-50252.

5

Is CVE-2023-50252 related to web application security?

Yes, CVE-2023-50252 is important for web application security as it affects the rendering of SVG graphics within applications.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203