Skip to content
Software Supply Chain Security

Paperclip flaw: how attackers gained admin access

Paperclip kwetsbaarheid

A Paperclip flaw tracked as CVE-2026-41679 (CVSS 10) showed how quickly an AI management platform can be turned into a high-impact target when authorization logic is incomplete. Security researchers reported that a remote attacker could chain together account creation, command-line authorization, and a crafted import configuration to achieve arbitrary code execution with the permissions of the server running Paperclip.

The case matters beyond one product. As organizations deploy “agentic” automation, identity and authorization paths can become new attack surfaces—especially when platform workflows rely on imports, previews, and credential handoffs between components.

What Paperclip is and why the workflow matters

Paperclip is described as an AI management platform that helps organizations operate autonomous AI agents at scale. It supports importing companies using portable bundles as well as YAML files. Those imports can define agents and the commands the platform should execute.

That import capability is also where the risk surfaced. If an attacker can influence how the platform interprets an import, they may be able to steer agent behavior toward execution adapters that run commands in the context of the Paperclip service.

The authorization bypass behind CVE-2026-41679

According to the report, the vulnerability was an authorization bypass that could let attackers obtain code execution using the server’s permissions. The affected instances were network-accessible and used default authenticated-mode configurations.

The core problem was a missing authorization check in the CLI authorization flow. An attacker could:

  • Self-register an account without email verification
  • Sign in immediately using that account
  • Create a CLI challenge
  • Approve the challenge
  • Deploy an agent by importing a new company

In other words, the attacker did not need an invitation or any control over a verified mailbox. Once the session existed, it was sufficient to reach the CLI challenge-and-approval process used to authorize a command-line client and activate a persistent board API credential.

How CLI approval translated into board-level access

By approving the CLI authorization challenge, the attacker could create a board API token tied to their own account. That token then granted board-level API access, including reachability to the company import routes.

The report highlights that Paperclip enforced correct restrictions for direct new-company creation. However, the “equivalent” path—importing a new company—relied on board-level access rather than instance-admin privileges. That mismatch created a gap the attacker could exploit.

Abusing the import to trigger host-level execution

After the attacker gained the ability to access the import routes, the next step was to craft an import configuration. Specifically, the report describes using a crafted .paperclip.yaml file to define an agent that would use a host-level execution adapter.

With that setup, the configuration could specify a command for the adapter to execute as the Paperclip server process. If successful, the command ran with the same permissions as the service account that hosted Paperclip.

What an attacker could reach after code execution

The impact depended on how Paperclip was deployed. The report notes that successful exploitation could include access to application data and source repositories, as well as local credentials and secrets exposed to agent processes. It could also include internal services reachable from the host where Paperclip ran.

That permission inheritance is a common pattern in real-world incidents: once an attacker gets code execution, containment controls often become less effective because the code runs under a trusted service identity.

What Paperclip changed to fix the issue

The platform’s fix focused on authorization and scoping. The report states that Paperclip resolved the security defect by applying authorization checks to both the import preview and import execution flows. In addition, the team tightened company scoping so that the import path would no longer be usable in the same unauthorized manner.

From a defense perspective, this addresses the likely root causes: checks that exist in one part of the workflow (like direct creation) must be enforced consistently in every equivalent entry point (like imports), including previews and the actual execution stage.

Two additional bugs reported alongside the main CVE

The researchers also described two other issues discovered during their investigation. These problems could enable different forms of compromise, including sensitive data exposure and another route to arbitrary code execution on developer machines.

Missing authorization on API routes

One bug involved missing authorization on certain API routes. The consequence was sensitive data disclosure, meaning information that should have remained protected could be retrieved by an unauthorized party.

DNS rebinding on loopback in local development

The second issue related to a DNS rebinding on loopback weakness. In local-development mode, Paperclip would bind to 127.0.0.1 and trust all requests reaching that address as originating from trusted software.

The report describes a scenario where a developer loads an attacker-controlled website in the browser. JavaScript on that site could bypass same-origin protections, obtain access to the local Paperclip API, and then use an import operation to influence Paperclip into executing a command on the developer’s computer.

This is an example of how “local-only” services can become reachable through browser-driven tricks when the service makes overly broad trust assumptions for local traffic.

Why agent security complicates authorization

The researchers also connected the technical details to a bigger trend: AI agents are becoming a new class of enterprise identity. Agentic workflows are distributed—users delegate intent to agents, agents may call other agents or tools, and each step can involve a different credential.

By the time an action reaches a target system, the logs may reflect only the final credential. That can make it harder to see who originated the request, which agent initiated it, or what task was intended.

In environments like these, authorization checks must be designed not only for direct user actions, but also for indirect flows such as CLI approvals and configuration imports that can trigger privileged execution.

Practical takeaways for defenders

If you operate Paperclip instances—especially those reachable over the network—treat this Paperclip flaw as a priority patching event. Based on the reported fixes, focus on updates that include authorization checks across import preview and import execution, plus tightened company scoping.

In parallel, review related risks that often accompany platform upgrades:

  • Confirm that network-accessible instances are not running with risky default configurations.
  • Validate that CLI authorization flows cannot be self-approved by accounts without proper verification.
  • If you use local-development mode, assess exposure to browser-based attacks and ensure you understand how local loopback trust is implemented.

Finally, consider improving monitoring around agent deployments and imports. The goal is to create clearer traceability between the original user intent and the later credentials used during execution.

Conclusion

The reported Paperclip flaw demonstrates how authorization bypasses can become “execution paths” in modern AI platforms. By combining account self-registration, CLI challenge approval, and crafted company imports, an attacker could potentially execute commands with the service’s permissions and reach sensitive resources on the host.

Paperclip’s response addressed the import preview and execution paths with stronger authorization checks and improved scoping. Still, the surrounding issues—missing API authorization and loopback trust weaknesses—underline a broader message: in agent-driven systems, security depends on consistent authorization across every workflow entry point, not just the most obvious ones.

Source: https://www.securityweek.com/critical-paperclip-flaw-allowed-admin-access-code-execution/