Skip to main content

Improper Neutralization of Special Elements used in a Command ('Command Injection')

CVE-2024-23346

Severity High
Score 7.8/10

Summary

Pymatgen (Python Materials Genomics) is an open-source Python library for materials analysis. A critical security vulnerability exists in the `JonesFaithfulTransformation.from_transformation_str()` method within the `pymatgen` library in versions 2017.6.8 through 2024.2.8. This method insecurely utilizes `eval()` for processing input, enabling the execution of arbitrary code when parsing untrusted input.

  • LOW
  • LOCAL
  • HIGH
  • UNCHANGED
  • NONE
  • LOW
  • HIGH
  • HIGH

CWE-77 - Command Injection

A command injection attack involves injecting an operating system command through the data input, which gets executed on the host operating system with the privileges of the victimized application. The impact of a command injection attack may range from loss of data confidentiality and integrity to unauthorized remote access to the hosting system. The attack may cause serious data breaches and system takeover.

References

Advisory Timeline

  • Published