CVE-2023-41334 Affecting astropy package, versions <4.0-4ubuntu1+esm1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.13% (65th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2004-ASTROPY-7675724
  • published15 Nov 2026
  • disclosed18 Mar 2024

Introduced: 18 Mar 2024

CVE-2023-41334  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.04 astropy to version 4.0-4ubuntu1+esm1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream astropy package and not the astropy package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

Astropy is a project for astronomy in Python that fosters interoperability between Python astronomy packages. Version 5.3.2 of the Astropy core package is vulnerable to remote code execution due to improper input validation in the TranformGraph().to_dot_graph function. A malicious user can provide a command or a script file as a value to the savelayout argument, which will be placed as the first value in a list of arguments passed to subprocess.Popen. Although an error will be raised, the command or script will be executed successfully. Version 5.3.3 fixes this issue.