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.
Published: 2026-08-19
Score: 9.4 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

MyBooks, an ebook management web server, allows an administrator to submit SOCIAL_AUTH key names without any sanitization of quotes or newline characters. The key names are written directly into a generated Python module (auto.py). An attacker who can reach the AdminSettings.post handler can craft a key name that closes the settings dictionary and injects arbitrary Python code. When the SettingsLoader loads the module, the injected code is executed with the privileges of the running service. As a result, a malicious actor can read, modify, or delete data; establish persistence; or cause denial of service. The weakness lies in improper code handling and injection of arbitrary code.

Affected Systems

The vulnerability is present in PoxenStudio Talebook (MyBooks) version 3.41.2 and all earlier releases. It is fixed in version 3.42.0. The issue impacts the web server component that processes administrative settings and can be exploited only when an attacker has administrator privileges to submit the post request.

Risk and Exploitability

The CVSS score of 9.4 classifies this as critical. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. The vulnerability requires administrative access to the web server, but once achieved it provides full remote code execution. The environment can be abused through the auto.py import mechanism, which is automatically triggered when autoreload is enabled, causing a process supervisor to restart the service and execute the malicious module. The design flaw in handling untrusted input directly leads to a high exploitation probability for those with the necessary privileges.

Generated by OpenCVE AI on August 19, 2026 at 17:30 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the MyBooks (Talebook) application to version 3.42.0 or later where the input validation and code injection issue has been fixed.
  • Until the upgrade is applied, configure strict access control to the AdminSettings.post interface so that only trusted administrators can submit social_auth settings, and monitor or block requests containing unescaped quotes or newline characters in key names.
  • Consider disabling or limiting the autoreload feature that triggers the module import during restarts, reducing the window in which injected code could be executed.

Generated by OpenCVE AI on August 19, 2026 at 17:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 19 Aug 2026 15:00:00 +0000

Type Values Removed Values Added
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.
Title MyBooks: Remote Code Execution via SOCIAL_AUTH Key Name Injection in Python Config File
Weaknesses CWE-829
CWE-94
References
Metrics cvssV4_0

{'score': 9.4, 'vector': '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-19T18:19:19.525Z

Reserved: 2026-05-11T18:41:13.156Z

Link: CVE-2026-45272

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-19T15:17:04.163

Modified: 2026-08-19T15:17:04.163

Link: CVE-2026-45272

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-19T17:45:03Z

Weaknesses
  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')