CVE-2026-45272 MyBooks: Remote Code Execution via SOCIAL_AUTH Key Name Injection in Python Config File

Critical 9.4 Published Updated

Administrators can inject Python code via SOCIAL_AUTH key names, leading to remote code execution when the application reloads its configuration.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-45272?

CVE-2026-45272 is a critical code injection vulnerability in PoxenStudio talebook, published on 19 Aug 2026. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

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.

Weakness: CWE-94, CWE-829

Which versions are affected by CVE-2026-45272?

How do I fix CVE-2026-45272?

No fix has been published for CVE-2026-45272 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-45272 being exploited?

There is no known exploitation of CVE-2026-45272 in the wild and no public exploit code.

Sources

Also known as GHSA-4wfr-9gcv-j638.

Is CVE-2026-45272 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free