CVE-2026-45272CWE-829CWE-94code-injection

CVE-2026-45272

published August 19, 2026

CVSS
9.4
EPSS
1%
Percentile
42.0
In the wild
Unconfirmed
What it is

MyBooks is an enhanced and easy-to-use personal ebook management web server also known as Talebook. In 3.41.2 and earlier, the AdminSettings.post handler in webserver/handlers/admin.py accepts SOCIAL_AUTH key names without validating quotes or newline characters, and SettingsLoader.dumpfile in webserver/loader.py concatenates those names into the generated Python source file auto.py without escaping them. An administrator can submit a crafted SOCIAL_AUTH key name that closes the settings dictionary and injects arbitrary Python statements. The application later executes those statements because SettingsLoader.loadfile imports auto.py as a module, and setting autoreload to true invokes restart_async so a process supervisor restarts the service and triggers the import. Successful exploitation executes commands with the privileges of the application service account and can disclose data, modify files, establish persistence, or disrupt the service. Related authorization and registration vulnerabilities can reduce the effective privilege requirement in a chained attack, but the standalone vulnerability requires administrator access. This issue is fixed in version 3.42.0.

The record
Technical detail
CVSS
9.4 · NONE
CVSS v4.0
9.4 · CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
EPSS
0.00501 · 42.0th percentile
Weaknesses
CWE-829 · Inclusion of Functionality from Untrusted Control Sphere; CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-08-19T19:17Z
References (3)
EPSS history
Timeline
  • 19 AUG 14:39Z
    MyBooks: Remote Code Execution via SOCIAL_AUTH Key Name Injection in Python Config File
    cvelistv5